import request from '@/utils/request'

// 查询场景业务功能关系表列表
export function listSceneBusinessFunctionRela(query) {
  return request({
    url: '/business/sceneBusinessFunctionRela/list',
    method: 'get',
    params: query
  })
}

// 查询场景业务功能关系表详细
export function getSceneBusinessFunctionRela(id) {
  return request({
    url: '/business/sceneBusinessFunctionRela/' + id,
    method: 'get'
  })
}

// 新增场景业务功能关系表
export function addSceneBusinessFunctionRela(data) {
  return request({
    url: '/business/sceneBusinessFunctionRela',
    method: 'post',
    data: data
  })
}

// 修改场景业务功能关系表
export function updateSceneBusinessFunctionRela(data) {
  return request({
    url: '/business/sceneBusinessFunctionRela',
    method: 'put',
    data: data
  })
}

// 删除场景业务功能关系表
export function delSceneBusinessFunctionRela(id) {
  return request({
    url: '/business/sceneBusinessFunctionRela/' + id,
    method: 'delete'
  })
}
